'use strict'

let { sequelize, DataTypes, defineModel } = require('../db');

let Model = defineModel('messages', {
    formUserId: {
        type: DataTypes.BIGINT,
        allowNull: false
    },
    toUserId: {
        type: DataTypes.BIGINT,
        allowNull: true
    },
    content: {
        type: DataTypes.STRING(80),
        allowNull: false
    }
});

module.exports = Model;